use "Table_A11.dta", replace

*** TABLE A11 ***
reghdfe diff  ib(2).thirdnet  ,  a(  year) vce(cluster  nuts2016)
outreg2 using Table_A11, keep( 1.thirdnet 3.thirdnet  )  nonotes nocons replace   tex addtext(NUTS FE, NO, Year FE, YES, Turnout Diff., NO, Controls, NO, Country*Year FE, NO)   
reghdfe diff  eurosceptic   ,  a(nuts  year) vce(cluster  nuts2016)  
outreg2 using Table_A11, keep( eurosceptic  )  nonotes nocons   tex addtext(NUTS FE, YES, Year FE, YES, Turnout Diff., NO, Controls, NO, Country*Year FE, NO)   
reghdfe diff  eurosceptic##ib(2).thirdnet  ,  a(nuts  year) vce(cluster  nuts2016)  
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet)  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES, Turnout Diff., NO, Controls, NO, Country*Year FE, NO)   
reghdfe diff  eurosceptic##ib(2).thirdnet turn_diff,  a(nuts  year ) vce(cluster  nuts2016)  
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet  )  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES, Turnout Diff., YES, Controls, NO, Country*Year FE, NO)
reghdfe diff  eurosceptic##ib(2).thirdnet##c.turn_diff,  a(nuts  year ) vce(cluster  nuts2016)  
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet  )  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES, Turnout Diff., YES+INT, Controls, NO, Country*Year FE, NO)
reghdfe diff  eurosceptic##ib(2).thirdnet turn_diff  small winner,  a(nuts  year c##year    ) vce(cluster  nuts2016)  
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet)  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES,  Turnout Diff., YES, Controls, YES, Country*Year FE, YES)
reghdfe diff  eurosceptic##ib(2).thirdnet turn_diff small winner,  a(nuts  year c##year    ) vce(cluster  nuts2016) , if mixed ==0 & majori==0 
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet)  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES,  Turnout Diff., YES, Controls, YES, Country*Year FE, YES)

reghdfe diff  eurosceptic##ib(2).thirdnet turn_diff small winner,  a(nuts  year c##year    ) vce(cluster  nuts2016) , if proEU==1  | eurosceptic==1 
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet)  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES,  Turnout Diff., YES, Controls, YES, Country*Year FE, YES)

reghdfe diff  eurosceptic##ib(2).thirdnet##enlarge1999    turn_diff ,  a(nuts  year c##year    ) vce(cluster  nuts2016), if new_c==0
outreg2 using Table_A11, keep(1.eurosceptic 1.eurosceptic#1.thirdnet 1.eurosceptic#3.thirdnet 1.eurosceptic#1.thirdnet#1.enlarge1999 1.eurosceptic#3.thirdnet#1.enlarge1999)  nonotes nocons     tex addtext(NUTS FE, YES, Year FE, YES,  Turnout Diff., NO, Controls, NO, Country*Year FE, NO)   
